package _2025_3_17;

public class test {
    public static void main(String[] args) throws InterruptedException {
        MyBlockingDeque myBlockingDeque=new MyBlockingDeque(3);
        myBlockingDeque.put(1);
        myBlockingDeque.put(2);
        myBlockingDeque.put(3);
        System.out.println("===");
        myBlockingDeque.put(4);
        System.out.println("***");
        myBlockingDeque.take();
        myBlockingDeque.take();
        myBlockingDeque.take();
        System.out.println("====");
        myBlockingDeque.take();
        System.out.println("***");
    }
}
